/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.put.netbeans.dcs_modeler.utils;

import java.util.Set;
import java.util.logging.Logger;
import org.netbeans.api.visual.model.ObjectSceneEvent;
import org.netbeans.api.visual.model.ObjectSceneListener;
import org.netbeans.api.visual.model.ObjectState;
import org.put.netbeans.dcs_modeler.GraphSceneImpl;

/**
 *
 * @author rudy
 */
public class SceneObjectListener implements ObjectSceneListener
{
    private static Logger log =
            Logger.getLogger( SceneObjectListener.class.getName()  );

    public void objectAdded( ObjectSceneEvent event, Object addedObject )
    {
        log.info( "addedObject = " + addedObject );
    }

    public void objectRemoved( ObjectSceneEvent event, Object removedObject )
    {
    
        log.info( "removedObject = " + removedObject );
    }

    public void objectStateChanged( ObjectSceneEvent event, Object changedObject, ObjectState previousState, ObjectState newState )
    {
        log.info( "changedObject = " + changedObject + " | previousState = " + previousState + " | newState = " + newState );
    }

    public void selectionChanged( ObjectSceneEvent event, Set<Object> previousSelection, Set<Object> newSelection )
    {
        log.info( "previousSelection = " + previousSelection + " | newSelection = " + newSelection );
    }

    public void highlightingChanged( ObjectSceneEvent event, Set<Object> previousHighlighting, Set<Object> newHighlighting )
    {
        log.info( "previousHighlighting = " + previousHighlighting + " | newHighlighting = " + newHighlighting );
    }

    public void hoverChanged( ObjectSceneEvent event, Object previousHoveredObject, Object newHoveredObject )
    {
        log.info( "previousHoveredObject = " + previousHoveredObject + " | newHoveredObject = " + newHoveredObject );
    }

    public void focusChanged( ObjectSceneEvent event, Object previousFocusedObject, Object newFocusedObject )
    {
        log.info( "previousFocusedObject = " + previousFocusedObject + " | newFocusedObject = " + newFocusedObject );
    }
}
